using System;
using System.Collections.Generic;
using System.Text;

namespace GraphAlgsPresentation.Core
{
    /// <summary>
    /// The class provides the management for all the effects of drawing
    /// </summary>
    public static class EffectManager
    {
        static Dictionary<DrawEffect, IEffect> effects = new Dictionary<DrawEffect,IEffect>();

        /// <summary>
        /// Initializes the <see cref="EffectManager"/> class.
        /// </summary>
        static EffectManager()
        {
            effects[DrawEffect.NoEffect] = new NoEffectDrawing();
            effects[DrawEffect.Blind] = new BlindDrawing();
        }

        /// <summary>
        /// Gets the drawing class.
        /// </summary>
        /// <param name="effect">The effect.</param>
        /// <returns></returns>
        public static IEffect GetDrawingClass(DrawEffect effect)
        {
            return effects[effect];
        }
    }
}
